using System.Windows.Controls;
using System.Windows.Input;
using Mvvm.UI;
using Mvvm.UI.Behaviors.EventToCommand;

namespace LayoutPlanning.Converters
{
    public class DependencyPropertyChangedToBool : EventArgsConverterBase<MouseEventArgs>
    {
        protected override object Convert(object value, MouseEventArgs parameter)
        {
            return (((parameter as MouseEventArgs)?.OriginalSource as Panel)?.IsMouseDirectlyOver) ?? false;
        }
    }
}